import request from '@/utils/request'

// 查询家庭支出列表
export function listJiatingzhichu(query) {
  return request({
    url: '/expend/jiatingzhichu/list',
    method: 'get',
    params: query
  })
}

// 查询家庭支出详细
export function getJiatingzhichu(id) {
  return request({
    url: '/expend/jiatingzhichu/' + id,
    method: 'get'
  })
}

// 新增家庭支出
export function addJiatingzhichu(data) {
  return request({
    url: '/expend/jiatingzhichu',
    method: 'post',
    data: data
  })
}

// 修改家庭支出
export function updateJiatingzhichu(data) {
  return request({
    url: '/expend/jiatingzhichu',
    method: 'put',
    data: data
  })
}

// 删除家庭支出
export function delJiatingzhichu(id) {
  return request({
    url: '/expend/jiatingzhichu/' + id,
    method: 'delete'
  })
}
